package com.boang.abs;

/*
  @author: 13813
  @date: 2024/11/19 14:39

  长方形类
*/
public class Rectangle {
    public int length;
    public int width;

    //默认构造方法

    //周长
    public int perimeter() {
        return (length + width) * 2;
    }

    //面积
    public int area() {
        return length * width;
    }
}
